/* GSBalancedDetailProvResultVO.java
 *
 * Project/Product: JZCG-XMBUS
 *
 * Modify Information:
 * =============================================================================
 *   Author	Date       Description
 *   ----------	---------- ---------------------------------------------------
 *   peng.ning	2008-9-16	First release
 *
 * Licensed Materials - Property of APEP
 * =============================================================================
 *    (C) COPYRIGHT Shanghai Auto Mart E-Procurement Co., Ltd. 2007 - 2008
 *    All Rights Reserved.
 *
 *    This software is the confidential and proprietary information of
 *    Shanghai Auto Mart E-Procurement Co., Ltd. ("Confidential Information").
 *    You shall not disclose such Confidential Information and shall use it only
 *    in accordance with the terms of the license agreement you entered into 
 *    with Shanghai Auto Mart E-Procurement Co., Ltd.
 *
 * Noties:
 * =============================================================================
 * 
 */

package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSBalancedDetailProvResultVO implements GSBaseBean{

    public String orderDetailId;
    
    public String deliverGoodId;
    
    public String deptName;
    
    public String concentricity;
    
    public String manufName;
    
    public String isTradeFlatManuf;
    
    public String isTradeFlatProvider;
    
    public String spec;
    
    public String type;
    
    public String brand;
    
    public String manufacter;
    
    public double orderCount;
    
    public String quantUnit;
    
    public double orgUnitPrice;
    
    public double signUnitPrice;
    
    public double signCount;
    
    public String signDate;
    
    public String orderId;
    
    public String providerName;
    
    public String providerId;
    
    public String manufactureId;
    
    public String balancemonth;
    
    public String balancemonthprov;
    
    public Object process(ResultSet aResultSet) throws SQLException {
        GSBalancedDetailProvResultVO tVO = new GSBalancedDetailProvResultVO();
        tVO.orderDetailId = aResultSet.getString("P1");
        tVO.concentricity = aResultSet.getString("P2");
        tVO.manufName = aResultSet.getString("P3");
        tVO.isTradeFlatManuf = aResultSet.getString("P4");
        tVO.spec = aResultSet.getString("P5") == null? "":aResultSet.getString("P5");
        tVO.type = aResultSet.getString("P6") == null? "":aResultSet.getString("P6");
        tVO.brand = aResultSet.getString("P7") == null? "":aResultSet.getString("P7");
        tVO.orderCount = aResultSet.getDouble("P8");
        tVO.quantUnit = aResultSet.getString("P9");
        tVO.providerName = aResultSet.getString("P10");
        tVO.deptName = aResultSet.getString("P11");
        tVO.signUnitPrice = aResultSet.getDouble("P12");
        tVO.orgUnitPrice = aResultSet.getDouble("P13");
        tVO.orderId = aResultSet.getString("P14");
        tVO.providerId = aResultSet.getString("P15");
        tVO.isTradeFlatProvider = aResultSet.getString("P16");
        tVO.deliverGoodId = aResultSet.getString("P17");
        tVO.signCount = aResultSet.getDouble("P18");
        tVO.signDate = aResultSet.getString("P19") == null? "":aResultSet.getString("P19").trim();
        tVO.manufacter = aResultSet.getString("P20") == null? "":aResultSet.getString("P20").trim();
        try{
            tVO.manufactureId = aResultSet.getString("P21") == null? "":aResultSet.getString("P21").trim();
            tVO.balancemonth=aResultSet.getString("gs_balance_month")==null?"":aResultSet.getString("gs_balance_month");
            tVO.balancemonthprov=aResultSet.getString("gs_balance_month_provider")==null?"":aResultSet.getString("gs_balance_month_provider");
        }catch(Exception e){}
        return tVO;
    }
}
